package com.gzsxy.rabbitmq.consumer.config.redis;

import org.springframework.data.redis.core.HashOperations;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @Description: 覆盖原生类  （强转hash键为string）
 * @Author: xiaolong
 * @date: 2023/2/16 9:06
 * @Version: 1.0
 */
public class StringRedisTemplate extends RedisTemplate<String, Object> {

    @Override
    public HashOperations<String, String, Object> opsForHash() {
        return super.opsForHash();
    }
}
